package kr.hkit.powerjava.chaper04;

import java.util.Scanner;

public class Box {
	public static void main(String[] args) {
		
		double w;
		double h;
		double area;
		double perimeter;
		
		Scanner input = new Scanner(System.in);
		System.out.println("가로 값을 입력하시오");
		w = input.nextDouble();
		
		System.out.println("세로 값을 입력하시오");
		h = input.nextDouble();
	
		area = w * h;
		perimeter = 2 * (w+h);

		System.out.println("사각형의 넓이: " + area);
		System.out.println("사각형의 둘레: " + perimeter);
	
	}
	
}
